import React from 'react'

import '../index.scss'
import PropTypes from 'prop-types';
import CaseEvaluation from "../caseEvaluation";
export default class CaseInfo extends React.Component{
    constructor(props) {
        super(props);
        this.state = {

        }
    }
    static getDerivedStateFromProps(nextProps){
        let projectDetails = nextProps.projectDetails
        return {
            projectDetails
        }
    }
    render() {

        return (
            <div className='case_info'>

                <div className='case_info_banner'>
                    <img src={this.state.projectDetails && this.state.projectDetails.customer_logo} alt=""/>
                </div>
                <h2 className='case_info_tit'>{this.state.projectDetails && this.state.projectDetails.entry_name}</h2>
                <p className='case_paragraph'>
                    {this.state.projectDetails && this.state.projectDetails.project_desc}
                </p>
            </div>
        );
    }
}
CaseInfo.propTypes = {
    projectDetails:PropTypes.object
}